import { Button, Result } from 'antd'
import { useNavigate } from 'react-router-dom'

function App() {
  const nav = useNavigate()
  const gotoHome = () => {
    nav('/')
  }
  return (
    <Result
      status='403'
      title='403'
      subTitle='Sorry, the page you visited does not exist.'
      extra={
        <Button type='primary' onClick={gotoHome}>
          回到首页
        </Button>
      }
    />
  )
}

export default App
